
(function () { 
	Lhs.ui.CreateCashWindow = function (agrs) {
	var pathimage=Ti.App.Properties.getString('pathimage');
	var platformWidth=Titanium.Platform.displayCaps.platformWidth;//Ti.App.Properties.getInt('platformWidth');
	var platformHeight=Titanium.Platform.displayCaps.platformHeight;//Ti.App.Properties.getInt('platformHeight');
	
	var Order_kv3=150;
	var Order_kv2=500;
	var Order_kv1=(platformWidth-Order_kv2-Order_kv3);
	
	
	
    var win = Titanium.UI.createWindow({
        id: 'Cash',
        title: 'Cash',
        fullscreen: true,
       
        //backgroundImage: pathimage+'panel_right.png',
        navBarHidden:true,
       // exitOnClose: true,
        backgroundColor:'#e3e3e3',
        orientationModes:[
	        Titanium.UI.LANDSCAPE_LEFT,
	        Titanium.UI.LANDSCAPE_RIGHT,
		]
    });
    
    var egc = new globals.EventGarbageCollection(win);
    egc.addEventListener('back_'+win.id, function () {
    	Lhs.navGroup.close(win, {
             animated: true
        });
    	
	});
	
	/*
	var OrderTask=require('controls/OrderTask').CreateOrderTask({
	 	backgroundColor:'Transparent',
        width:Order_kv1,
        height:platformHeight,
        left:0,
        
    })
	win.add(OrderTask);
	
	
	
	var OrderItems=require('controls/OrderItems').CreateOrderItems({
	 	backgroundColor:'Transparent',
        width:Order_kv2,
        height:platformHeight,
        left:OrderTask.width,
        idWinParent:win.id,
        OrderName:agrs.Name,
        TicketId:agrs.TicketId,
        json_Tickets:agrs.json_Tickets
    })
	win.add(OrderItems);
	
	
    var ScreenMenuCategories=require('controls/ScreenMenuCategories').CreateScreenMenuCategories({
	 	backgroundColor:'Transparent',
        width:Order_kv3,
        height:platformHeight,
        left:OrderItems.width+OrderTask.width,
    })
	win.add(ScreenMenuCategories);
	
	
	var ScreenMenuItems=require('controls/ScreenMenuItems').CreateScreenMenuItems({
	 	backgroundColor:'Transparent',
        width:Order_kv4,
        height:platformHeight,
        left:ScreenMenuCategories.width+OrderItems.width+OrderTask.width,
    })
	win.add(ScreenMenuItems);
	*/
	var CashItems=require('controls/CashItems').CreateCashItems({
	 	backgroundColor:'Transparent',
        width:Order_kv1,
        height:platformHeight,
        left:0,
        data:agrs.data,
        OrderName:agrs.OrderName,
        egc:egc,
    })
    win.add(CashItems);
	var CashPad=require('controls/CashPad').CreateCashPad({
	 	backgroundColor:'Transparent',
        width:Order_kv2,
        height:platformHeight,
        right:Order_kv3,
        
    })
	win.add(CashPad);
	
	var CashTask=require('controls/CashTask').CreateCashTask({
	 	backgroundColor:'Transparent',
        width:Order_kv3,
        height:platformHeight,
        right:0,
        
    })
	win.add(CashTask);
	
	
	
	
	
 	return win;
    };
})();